home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Medal Software 3
/
Gold Medal Software - Volume 3 (Gold Medal) (1994).iso
/
utils1
/
eqo10.arj
/
EQO.DOC
next >
Wrap
Text File
|
1994-03-05
|
36KB
|
930 lines
EQO.DOC 05-Mar-1994
╔═══════════════════╗
────╢ EQO version 1.0 ╟────
═════════╣ ───────────────── ╠═════════
────╢ by Jeremy Sawicki ╟────
╚═══════════════════╝
"The DOS ECHO command replacement."
┌──────────────────
│ TABLE OF CONTENTS ║
══════════════════╝
DISCLAIMER / LEGAL INFORMATION . . . . . . . . . . . . . . . . . . . . 2
THE SHAREWARE CONCEPT . . . . . . . . . . . . . . . . . . . . . . . . . 2
Distribution Information . . . . . . . . . . . . . . . . . . . . . . 3
Commercial Use Policy . . . . . . . . . . . . . . . . . . . . . . . 3
PURPOSE OF THE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . 3
QUICK START . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
HOW TO USE THE PROGRAM . . . . . . . . . . . . . . . . . . . . . . . . 4
SPECIAL CODES 5
$$ Dollar sign . . . . . . . . . . . . . . . . . . . . . . . . . 5
$G Greater-than sign . . . . . . . . . . . . . . . . . . . . . . 5
$L Less-than sign . . . . . . . . . . . . . . . . . . . . . . . . 5
$B Pipe symbol . . . . . . . . . . . . . . . . . . . . . . . . . 6
$Q Equal sign . . . . . . . . . . . . . . . . . . . . . . . . . . 6
$T Current time . . . . . . . . . . . . . . . . . . . . . . . . . 6
$D Current date . . . . . . . . . . . . . . . . . . . . . . . . . 6
$P Current drive and path . . . . . . . . . . . . . . . . . . . . 7
$N Current drive . . . . . . . . . . . . . . . . . . . . . . . . 7
$V DOS version number . . . . . . . . . . . . . . . . . . . . . . 7
$H Backspace (erase previous character) . . . . . . . . . . . . . 8
$E Escape (ASCII code 27) . . . . . . . . . . . . . . . . . . . . 8
$_ Carriage return and line feed . . . . . . . . . . . . . . . . 8
$^ Any control character . . . . . . . . . . . . . . . . . . . . 9
$### Any ASCII code (decimal) . . . . . . . . . . . . . . . . . . . 9
$X## Any ASCII code (hexadecimal) . . . . . . . . . . . . . . . . . 9
$; No carriage return / line feed . . . . . . . . . . . . . . . . 10
EXAMPLES 10
DOS Piping Capabilities . . . . . . . . . . . . . . . . . . . . . . 10
Keeping a Log File . . . . . . . . . . . . . . . . . . . . . . . . . 11
Using ANSI Codes . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Changing Colors (ANSI) . . . . . . . . . . . . . . . . . . . . . . . 12
Redefining Keys (ANSI) . . . . . . . . . . . . . . . . . . . . . . . 14
FINAL WORD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki TABLE OF CONTENTS 1
──────────────────────────────────────────────────────────────────────────
┌───────────────────────────────
│ DISCLAIMER / LEGAL INFORMATION ║
═══════════════════════════════╝
This program and the accompanying documentation are provided AS IS,
with no warranty of any kind, expressed or implied, including but not
limited to warranties of merchantability, fitness for a particular
purpose, or functionality. Under no conditions will Jeremy Sawicki be
liable for any damages whatsoever that may result, directly or indirectly,
from the use or inability to use this software or documentation.
By possessing and/or using a copy of EQO, you agree to the above terms
and conditions.
Trademarks mentioned in this documentation appear for identification
purposes only and are the property of their respective companies.
(And now, on to more important things...)
┌──────────────────────
│ THE SHAREWARE CONCEPT ║
══════════════════════╝
EQO is being distributed under the shareware concept. This means that
it may be freely distributed (see Distribution Information below) in order
to give users a chance to try the program without paying any money for it.
Typically, shareware authors give users a trial period (30 days, for
example) during which time they may try the program out and evaluate its
usefulness. If after that time they decide to continue using the program,
they must "register" the program by sending money to the author.
Unlike many shareware programs, EQO version 1.0 currently has no
"required" registration fee. However, donations are always welcome. If
you find EQO useful, interesting, or entertaining - or if you just have
some spare cash lying around - a voluntary donation of any amount ($5 U.S.
suggested) would be greatly appreciated. With enough user support, I will
be able to produce newer, better versions of this and other shareware
programs in the future.
Send any contributions or other correspondence to the following
address:
Jeremy Sawicki
523 Kapity Dr.
Mogadore, OH 44260-9534
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki DISCLAIMER / LEGAL INFORMATION 2
──────────────────────────────────────────────────────────────────────────
Electronic mail can be sent to the author at the following Internet
addresses:
at869@cleveland.freenet.edu (preferred)
jsawicki@nyx.cs.du.edu (alternate)
71321.3301@compuserve.com (alternate)
When writing, why not tell me a little about your use of EQO? For
example, where did you get your copy? What do you use it for primarily?
What features do you like the most, and what others would you like to see
added? Any comments would be welcome, as they may help me to improve
future versions of the program.
Distribution Information
────────────────────────
EQO may be freely copied and distributed, as long as it is not modified
in any way, and this documentation is always included with the executable.
It may be uploaded to electronic bulletin boards or Internet FTP sites. A
reasonable fee may be charged to cover the costs of copying and
distribution. To prevent multiple copies of the program from existing on
the same system under different names, you are encouraged to distribute it
under the name EQO10.ZIP (or other suitable extension).
Commercial Use Policy
─────────────────────
EQO may not be used for any commercial purposes without my prior
express written permission. EQO may not be distributed for use with any
for-profit products without my prior express written permission.
If you are interested in using EQO in a commercial environment or as
part of a for-profit product, contact the author through electronic or
standard paper mail (see above) to make arrangements.
┌───────────────────────
│ PURPOSE OF THE PROGRAM ║
═══════════════════════╝
EQO is a replacement for the DOS ECHO command with several
enhancements. It performs the same basic function as the ECHO command,
which is to print, or "echo," text to the screen. The difference is that
EQO supports several special codes which can be typed on the command line
to modify the program's output. Most of these codes are the same as the
dollar-sign codes supported by the PROMPT command. In addition to those,
I have added several other codes that I thought would be useful.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki THE SHAREWARE CONCEPT 3
──────────────────────────────────────────────────────────────────────────
The original reason for writing this program stems from the inability
of DOS to perform several simple tasks which I thought were important.
First, DOS provides no means of sending ANSI escape sequences to the
screen. (ANSI escape sequences are special codes which, when sent to the
screen, can cause special effects such as moving the cursor or changing
the colors of printed text. A driver such as ANSI.SYS must be installed
for these to work properly.) Second, when using the ECHO command to
display text on the screen from batch files, a blank line cannot be
printed by giving the ECHO command with no parameters, as might be
expected. Finally, the ECHO command always outputs a carriage return and
line feed after it prints out its text, which at times I have found to be
undesirable. For these reasons, I thought that a replacement to the
standard ECHO command would be useful.
┌────────────
│ QUICK START ║
════════════╝
If you're into quick starts, just type "EQO /?" and you'll be on your
way in no time.
┌───────────────────────
│ HOW TO USE THE PROGRAM ║
═══════════════════════╝
The first thing that must be done in order to use EQO effectively is to
put it in your PATH setting so that it can be used from any directory.
This can be done in two ways. One is to copy the EQO.EXE file into a
directory already in your PATH (such as C:\DOS). Alternatively, you can
add the directory in which EQO resides to your current path setting. This
is usually done by modifying the PATH line in your AUTOEXEC.BAT file. If
your current path line in AUTOEXEC.BAT looks like
SET PATH=C:\DOS;C:\;C:\UTILS
you should change it to something like
SET PATH=C:\DOS;C:\EQO;C:\;C:\UTILS
and then restart your computer so that the change will take effect.
Once EQO is in your path, you can run it on the command line or from a
batch file using the following format
EQO [message]
where [message] is anything that is to be echoed to the screen. For
example, typing
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki PURPOSE OF THE PROGRAM 4
──────────────────────────────────────────────────────────────────────────
EQO Hello, world!
will print the message "Hello, world!" on the screen (without the quotes).
This is exactly what the standard ECHO command does.
EQO also accepts special commands or codes as part of [message] which
change what is printed on the screen. See the next section (Special
Codes) for a description of how to use these codes.
┌──────────────
│ SPECIAL CODES ║
══════════════╝
While most characters typed on the command line are simply echoed to
the screen, EQO reserves the dollar sign ($) for special purposes.
Whenever a dollar sign is typed on the command line, EQO assumes that it
is part of a special code which changes the behavior or output of EQO.
These codes allow EQO to provide features which are not available with the
standard DOS ECHO command. (Note that these codes are not case sensitive
- upper and lower case are both accepted.) Following is a description of
each special code supported, as well as how each is used.
$$ Dollar sign ($)
──────────────────────
The $$ command simply echoes a single dollar sign to the screen. Since
the dollar sign is used as part of these special codes, it is necessary to
use two of them together in order to print a single dollar sign.
$G Greater-than sign (>)
────────────────────────────
The $G command echoes a greater-than sign (>) to the screen. Since the
greater-than sign is used by DOS for piping, it cannot be printed on the
screen using the normal ECHO command. This option provides a way of using
the greater-than sign in printed text.
$L Less-than sign (<)
─────────────────────────
The $L command echoes a less-than sign (<) to the screen. Since the
less-than sign is used by DOS for piping, it cannot be printed on the
screen using the normal ECHO command. This option provides a way of using
the less-than sign in printed text.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 5
──────────────────────────────────────────────────────────────────────────
$B Pipe symbol (|)
──────────────────────
The $B command echoes a pipe symbol (|), or vertical bar, to the
screen. Since this symbol is used by DOS for piping, it cannot be printed
on the screen using the normal ECHO command. This option provides a way
of using the pipe symbol in printed text.
$Q Equal sign (=)
─────────────────────
The $Q command echoes an equal sign (=) to the screen. This option is
not particularly useful, since the equal sign can simply be typed on the
command line, but it has been retained for compatibility with the dollar-
sign commands used by the PROMPT statement.
$T Current time
──────────────────
The $T command echoes the current system time to the screen, in the
same format used in the DOS prompt. For example, typing
EQO $T
at 22.35 seconds after 6:30pm would display
18:30:22.35
on the screen.
$D Current date
──────────────────
The $D command echoes the current system date to the screen, in the
same format used in the DOS prompt. For example, typing
EQO $D
on July 6, 1994, would display
Wed 07-06-1994
on the screen.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 6
──────────────────────────────────────────────────────────────────────────
$P Current drive and path
────────────────────────────
The $P command echoes the current DOS drive and path to the screen.
For example, typing
EQO You are currently in the $P directory
while in the \DOS directory on drive C would display
You are currently in the C:\DOS directory
on the screen.
$N Current drive
───────────────────
The $N command echoes the current DOS drive letter to the screen. For
example, typing
EQO You are currently using drive $N:
while on drive C would display
You are currently using drive C:
on the screen.
$V DOS version number
────────────────────────
The $V command echoes the DOS version number to the screen. Note that
the version number as displayed by EQO will not necessarily look the same
as when it is displayed in the DOS prompt. EQO only gives the numerical
value of the DOS version number, without any of the additional information
that PROMPT provides. For example, if you are using MS-DOS version 6.2,
typing
EQO You have DOS version $V
would display
You have DOS version 6.20
on the screen.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 7
──────────────────────────────────────────────────────────────────────────
$H Backspace (erase previous character)
───────────────────────────────────────────
The $H command echoes a backspace character, which erases the previous
character on the screen. One use of the $H command would be to display
the current time without the hundredths of a second displayed. This could
be done with the following command:
EQO The current time is: $T$H$H$H
The $T would display, for instance, 18:30:22.35. Then the three $H
commands would erase the two hundredths digits and the decimal point. The
resulting message would look like this:
The current time is: 18:30:22
$E Escape (ASCII code 27)
─────────────────────────────
The $E command echoes an escape character (ASCII code 27 decimal, or 1B
hex) to the screen. The primary use of this command is to send ANSI
escape sequences to the screen. If ANSI.SYS or a similar driver is
installed, certain special codes beginning with the escape character can
be sent to the screen, resulting in interesting effects. These include
changing screen colors, clearing the screen, moving the cursor around the
screen, and many others. Try typing the following:
EQO $E[0;1;33;44m
The E can be upper or lower case, but it is important for the m to be
lower case for this command to work. This command changes the screen
colors to yellow text on a blue background. Refer to the Examples section
for a more complete explanation of how to use ANSI codes.
$_ Carriage return and line feed
───────────────────────────────────
The $_ command is the equivalent of telling EQO to press Enter.
Wherever this code occurs, EQO moves the cursor to the beginning of the
next line of text, making it possible to print multi-line messages with a
single EQO command. For example, typing
EQO This is a$_three-line$_message!
will display the following:
This is a
three-line
message!
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 8
──────────────────────────────────────────────────────────────────────────
$^ Any control character
───────────────────────────
The $^ command allows control characters (those with ASCII codes up to
31) to be displayed on the screen. The character immediately following
the $^ code on the command line determines which control character will be
displayed. For example, typing
EQO $^A
will display a Control-A, or ASCII code 1, on the screen, which happens to
be a picture of a smiley face. Using the command
EQO $^G
it is possible to cause the PC's internal speaker to beep, because the
Control-G character represents a beep.
$### Any ASCII code (decimal)
──────────────────────────────
This command provides a way of displaying any character on the screen
by using its ASCII code. Simply replace ### with a three-digit code (in
decimal) and EQO will display the character with that ASCII code. As an
example, try typing the following:
EQO $176$177$178$219 EQO! $219$178$177$176
This makes use of certain shaded box ASCII characters, and will display
the following on the screen:
░▒▓█ EQO! █▓▒░
Note that the ASCII code following the dollar sign must be exactly
three digits long. Shorter values must have zeroes added to them on the
left to work properly. This means that the proper command for a capital
"A" is $065 and not $65.
$X## Any ASCII code (hexadecimal)
──────────────────────────────────
This command serves the same purpose as the previous one, except that
the ASCII code is in hexadecimal (base 16) rather than in decimal (base
10). Simply replace ## with a two-digit hexadecimal ASCII code, and EQO
will print the corresponding character to the screen. For example, typing
EQO a $xF2 b$xF1$xFB2
will print the following:
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 9
──────────────────────────────────────────────────────────────────────────
a ≥ b±√2
Note that the ASCII code following the $X must be exactly two digits
long. A 1-digit hexadecimal value must have a zero before it for the
command to work properly. This means that the proper command for a little
smiley face is $X01 and not $X1.
$; No carriage return / line feed
────────────────────────────────────
The $; command functions in a slightly different way than the others.
It does not print anything on screen when it appears in the command line.
It does not even matter where in the command line this code appears. If
it appears SOMEWHERE in the command line, though, EQO will not advance to
the beginning of the next line at the end of its output as it usually
does.
One use of this would be to give two consecutive EQO commands in a
batch file, with the output of both appearing on the same line. For
example, these two lines in a batch file
EQO This message will be $;
EQO displayed on one line.
would produce the following result:
This message will be displayed on one line.
This is particularly useful with EQO commands using ANSI escape
sequences. These ANSI codes typically take up a lot of space on the
command line without producing a comparable amount of output, so it is
often desirable to split them up into several lines.
┌─────────
│ EXAMPLES ║
═════════╝
This section provides some examples of ways of using EQO. I'm sure
there are many more, but these are some of the ones that I find useful.
DOS Piping Capabilities
───────────────────────
As with the standard ECHO command, the output of EQO may be piped into
a file or another program. The command
EQO Hello! > HELLO.TXT
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki SPECIAL CODES 10
──────────────────────────────────────────────────────────────────────────
creates a file called HELLO.TXT with the word "Hello!" in it.
As a simple example of piping the output of EQO into another command,
this changes the system time to 10:00 a.m. with a single command:
EQO 10:00 | TIME
Of course, these are trivial examples, but the ability to use piping
can be quite helpful at times.
Keeping a Log File
──────────────────
Using the time and date capabilities of EQO it would be possible to
keep a log of when certain events occur. For instance, placing the line
EQO $D $T Word processor invoked. >> C:\LOGFILES\USAGELOG.TXT
in a batch file which runs a word processor would cause a line similar to
Wed 07-06-1994 18:30:22.35 Word processor invoked.
to be placed at the end of a file called USAGELOG.TXT in the C:\LOGFILES
directory whenever the word processor is used.
Creativity can probably find many other, possibly more practical, uses
for the $D and $T codes as well.
Using ANSI Codes
────────────────
With the $E command, EQO makes it possible to use ANSI escape sequences
(often called ANSI codes) to produce a variety of special effects. First,
in order to make these work properly, an ANSI driver must be installed.
This is usually done by including a command similar to the following in
the CONFIG.SYS file:
DEVICE=C:\DOS\ANSI.SYS
Once an ANSI driver is installed, ANSI codes sent to the screen using
EQO can be interpreted properly. All of these ANSI codes start with an
escape character (ASCII code 27) followed by a left bracket ("["). When
sending ANSI codes from EQO, the escape character is typed on the command
line as $E. Using this notation, here is a list of some of the codes
supported by ANSI drivers.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki EXAMPLES 11
──────────────────────────────────────────────────────────────────────────
$E[2J Erase screen and home cursor
$E[K Erase to end of line
$E[A Cursor up one row
$E[B Cursor down one row
$E[C Cursor right one column
$E[D Cursor left one column
$E[##A Cursor up ## rows
$E[##B Cursor down ## rows
$E[##C Cursor right ## columns
$E[##D Cursor left ## columns
$E[##;@@f Cursor to row ##, column @@
$E[s Save cursor position
$E[u Restore cursor position
Most of these codes are fairly self-explanatory. Wherever the ## and
@@ occur, replace them with the required data. The $E[s command saves the
current cursor position somewhere in memory, and the $E[u command returns
the cursor to the most-recently saved position. One important thing to
note is that while the $E may have a capital or small E, it is important
for the rest of the codes to be typed EXACTLY as shown, capital or lower-
case as needed. EQO is not picky, but ANSI drivers are.
For examples of using some more complex ANSI codes, see "Changing
Colors" and "Redefining Keys" below.
Changing Colors (ANSI)
──────────────────────
Another feature available through ANSI drivers is the ability to change
the colors of text on the screen. This is done with an ANSI code of the
following format:
$E[##;##;...;##m
There can be several ##'s in this command, separated by semi-colons, and
terminated by a lower-case M.
Following is a list of numbers that set text attributes and generally
function for both monochrome and color screens:
0 Reset to normal (light gray on black)
1 Bold (high intensity)
4 Underline (monochrome only)
5 Blinking
7 Reverse video (black on light gray)
8 Invisible (black on black)
These numbers change the colors of printed text:
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki EXAMPLES 12
──────────────────────────────────────────────────────────────────────────
Bold off Bold on
──────── ───────
30 Black Dark Gray
31 Red Light Red
32 Green Light Green
33 Brown Yellow
34 Blue Light Blue
35 Magenta Light Magenta
36 Cyan Light Cyan
37 Light Gray White
These numbers change the color of the background behind the text:
40 Black
41 Red
42 Green
43 Brown
44 Blue
45 Magenta
46 Cyan
47 Light Gray
By stringing several of these codes together in the right way, it is
possible to change colors in many different ways. For example, the
following command simply changes the colors to Light Gray text on a Black
background:
EQO $E[0m
Type the following to change the colors to Blinking Red text on a Black
background:
EQO $E[0;5;31m
(This can get annoying very quickly.) This next command changes the
screen colors to Yellow on Blue (my personal favorite):
EQO $E[0;1;33;44m
One important thing to know is that you don't have to start these
color-changing commands with a "0" to reset the colors. However, several
of the text attributes (numbers 1-8) cannot be undone without completely
resetting the colors and starting from scratch. This is especially true
for the attributes of Bold, Underline, and Blinking. For instance, if you
are working with Blinking Light Blue letters on a Light Gray background
and you want to turn off blinking, you must start from scratch and
reselect the colors as follows:
EQO $E[0;1;34;47m No Blink $E[5m Blink $E[0;1;34;47m No Blink
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki EXAMPLES 13
──────────────────────────────────────────────────────────────────────────
These color-changing ANSI codes can be used for several purposes. One
is to add emphasis to messages printed from batch files. This in itself
provides many possibilities. Another use is to add a line to your
AUTOEXEC.BAT file which changes your screen colors to whatever you like
them to be in DOS. It may also be helpful to create a batch file
containing a single EQO command to do this, because some programs have a
habit of altering the screen colors, and you can then run that batch file
whenever necessary to change them back.
Redefining Keys (ANSI)
──────────────────────
Yet another feature provided by ANSI drivers is the ability to redefine
keys to perform other functions. This is most useful for redefining keys
which are not normally used in DOS (such as function keys) so that they
act as macros or typing aids for commonly typed commands. (Note that some
ANSI drivers do not support this feature. Try one of the examples to see
if yours does.)
To start with, here is an example of how a key might be redefined:
EQO $E[0;68;"dir";13p
This command looks cryptic, but what it does is simple: it redefines the
F10 key to type "dir" and press Enter. The $E[ is the standard beginning
for all ANSI codes. The 0 and the 68 together specify that the F10 key
will be redefined - this will be explained more later. The "dir" in
quotes is the new definition of the F10 key, and the 13 (which is the
ASCII code for Enter) specifies that the F10 key should simulate pressing
the Enter key as well as typing dir. The letter p at the end, which must
be lower case, tells the ANSI driver that you are finished with the
command.
With key redefinition commands, the first number after the bracket
determines which key will be redefined, unless it is a zero, in which case
the second number determines this. If the first number is non-zero, the
key to be redefined is simply the key having that ASCII code. If the
first number is zero, however, the second number refers to an "extended
code" which tells which key to redefine. The following chart lists many
extended codes and their corresponding keys:
15 Shift Tab
16 to 25 Alt Q, W, E, R, T, Y, U, I, O, P
30 to 38 Alt A, S, D, F, G, H, J, K, L
44 to 50 Alt Z, X, C, V, B, N, M
59 to 68 F1 to F10
71 Home
72 Up Arrow
73 PgUp
75 Left Arrow
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki EXAMPLES 14
──────────────────────────────────────────────────────────────────────────
77 Right Arrow
79 End
80 Down Arrow
81 PgDn
82 Ins
83 Del
84 to 93 Shift F1 to F10
94 to 103 Ctrl F1 to F10
104 to 113 Alt F1 to F10
114 Ctrl PrtSc
115 Ctrl Left Arrow
116 Ctrl Right Arrow
117 Ctrl End
118 Ctrl PgDn
119 Ctrl Home
120 to 131 Alt 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, -, =
132 Ctrl PgUp
After specifying which key to redefine, the rest of the code tells what
exactly to redefine it to. Plain ASCII text can be used by enclosing it
in quotes, as with "dir" in the example above. Special keys, such as
Enter, can be referenced by their ASCII codes. When all this is put
together correctly, the appropriate key takes on a whole new meaning when
used at the DOS prompt.
As another example, this command redefines the Alt-R key combination to
change to the root directory:
EQO $E[0;19;"cd\";13p
To make these key redefinitions easier to use, it is helpful to make a
batch file which contains all the redefinitions you frequently use.
Alternatively, place these commands in your AUTOEXEC.BAT file so they
automatically take effect each time you boot your computer.
Note: EQO ordinarily advances to the next line at the end of its
output. When giving key redefinition commands from a batch file, this may
produce unwanted blank lines. To avoid this, append the $; code to the
end of each line.
┌───────────
│ FINAL WORD ║
═══════════╝
Well, this is it - my first attempt at writing a shareware program. I
hope that someone other than myself finds it useful. Even if not, at
least now I have the program to use for myself.
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki EXAMPLES 15
──────────────────────────────────────────────────────────────────────────
And now I will make one last appeal for money: If you use EQO
regularly and find it useful, why not send me a donation for my efforts?
I can always use the extra help, and it will help encourage me to write
other programs in the future. Once again, here is the address where I can
be reached:
Jeremy Sawicki
523 Kapity Dr.
Mogadore, OH 44260-9534
Or, by Internet e-mail:
at869@cleveland.freenet.edu (preferred)
jsawicki@nyx.cs.du.edu (alternate)
71321.3301@compuserve.com (alternate)
And one final request: Help spread this program around. Upload it to
electronic bulletin boards, online services, and anywhere else you can
think of. Thanks!
──────────────────────────────────────────────────────────────────────────
EQO version 1.0 - by Jeremy Sawicki FINAL WORD 16
──────────────────────────────────────────────────────────────────────────